package org.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author guocb
 * @since 2021-03-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class News extends NewsEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "nid", type = IdType.AUTO)
    private Integer nid;

    private Integer ntid;

    private String ntitle;

    private String nauthor;

    private Date ncreateDate;

    private String npicPath;

    private String ncontent;

    private Date nmodifyDate;

    private String nsummary;


    public static final String NID = "nid";

    public static final String NTID = "ntid";

    public static final String NTITLE = "ntitle";

    public static final String NAUTHOR = "nauthor";

    public static final String NCREATEDATE = "ncreateDate";

    public static final String NPICPATH = "npicPath";

    public static final String NCONTENT = "ncontent";

    public static final String NMODIFYDATE = "nmodifyDate";

    public static final String NSUMMARY = "nsummary";

}
